package com.doupi.partner.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * com.xletou.generator.codegen.mybatis3.IntrospectedTableMyBatisImpl@6edd4fe2 
 */
public class PartnerRelation implements Serializable {
    private static final long serialVersionUID = -1113472190376407936L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 姓名
     */
    private String name;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 关联后台登录账户id
     */
    private Long administratorId;

    /**
     * 关联上级后台登录账户id
     */
    private Long superiorAdministratorId;

    /**
     * 关联城市代理商后台登录账户id
     */
    private Long cityAdministratorId;

    /**
     * 关联分站后台账户id
     */
    private Long substationAdministratorId;

    /**
     * 城市6位编码
     */
    private String city;

    /**
     * 账户余额
     */
    private BigDecimal balance;

    /**
     * 类型 1 一级城市合伙人 2 二级城市合伙人 3 城市代理商 4 逗皮分分站 5逗皮总部
     */
    private Byte type;

    /**
     * 营销号
     */
    private String marketingNumber;

    /**
     * 城市合伙人openid
     */
    private String openId;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 额外数据一般不会变
     */
    private String extraData;

    /**
     * 创建管理员id
     */
    private Long createAdministratorId;

    /**
     * 更新管理员id
     */
    private Long updateAdministratorId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Long getAdministratorId() {
        return administratorId;
    }

    public void setAdministratorId(Long administratorId) {
        this.administratorId = administratorId;
    }

    public Long getSuperiorAdministratorId() {
        return superiorAdministratorId;
    }

    public void setSuperiorAdministratorId(Long superiorAdministratorId) {
        this.superiorAdministratorId = superiorAdministratorId;
    }

    public Long getCityAdministratorId() {
        return cityAdministratorId;
    }

    public void setCityAdministratorId(Long cityAdministratorId) {
        this.cityAdministratorId = cityAdministratorId;
    }

    public Long getSubstationAdministratorId() {
        return substationAdministratorId;
    }

    public void setSubstationAdministratorId(Long substationAdministratorId) {
        this.substationAdministratorId = substationAdministratorId;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public String getMarketingNumber() {
        return marketingNumber;
    }

    public void setMarketingNumber(String marketingNumber) {
        this.marketingNumber = marketingNumber;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getExtraData() {
        return extraData;
    }

    public void setExtraData(String extraData) {
        this.extraData = extraData;
    }

    public Long getCreateAdministratorId() {
        return createAdministratorId;
    }

    public void setCreateAdministratorId(Long createAdministratorId) {
        this.createAdministratorId = createAdministratorId;
    }

    public Long getUpdateAdministratorId() {
        return updateAdministratorId;
    }

    public void setUpdateAdministratorId(Long updateAdministratorId) {
        this.updateAdministratorId = updateAdministratorId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object that) {
        return EqualsBuilder.reflectionEquals(this, that);
    }

    @Override
    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this);
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}